/* @import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&diasply=swap'); *//*引用谷歌字体*/
@import 'google-font.css';

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color:#223243;
    font-family:'Poppins', sans-serif;
}

.container{
    padding: 40px;
    border-radius: 20px;
    border: 8px solid#223243;
    box-shadow: -5px -5px 15px rgba(255,255,255,0.1),
    5px 5px 15px rgba(0,0,0,0.35),
    inset -5px -5px 15px rgba(255,255,255,0.1), 
    inset 5px 5px 15px rgba(0,0,0,0.35);
}

.container.form{
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    gap:25px;
}

.container.form.signin,
.container.signinForm.form.signup{
    display: none;}
    .container.form h2{
        color:#fff;
        font-weight:500;
        letter-spacing:0.1em;
}
.container.signinForm.form.signin{
    display: flex;
}

.container.form.inputBox{
    position: relative;
    width:300px;
}

.container.form.inputBox input{
    width:100%;
    padding:12px 10px 12px 48px;
    border: none;
    background-color:#223243;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color:#fff;
    font-family:300;
    border-radius:25px;
    font-size:1em;
    box-shadow: -5px -5px 15px rgba(255,255,255,0.1),
    5px 5px 15px rgba(0,0,0,0.35);
    transition:0.5s;
    outline: none;
}

.container.form.inputBox span{
    position: absolute;
    left:0;
    padding:12px 10px 12px 48px;
    pointer-events: none; 
    font-size:1em;
    font-weight:300;
    transition:0.5s;
    letter-spacing:0.05em;
    color:rgba(255,255,255,0.5);
}
.container.form.inputBox input:valid ~ span,
.container.form.inputBox input:focus ~ span{
    color:#00dfc4;
    border:1px solid #00dfc4;
    background-color:#223243;
    transform:translateX(25px) translateY(-50%);
    border-radius:10px;
    letter-spacing:0.1em;
    font-size:0.6em;
    padding:0 8px;
    border-radius:10px;
}
.container.form.inputBox input:valid,
.container.form.inputBox input:focus{
    border:10x solid #00dfc4;
}
.container.form.inputBox i{
    position: absolute;
    top:15px;
    left:16px;
    width:25px;
    padding:2px 0;
    color: #00dfc4;
    border-right:1px solid #00dfc4;
    padding-right:8px;
}

.container.form.inputBox input[type='submit']{
    background-color:#00dfc4;
    color:#223243;
    padding:10px 0;
    font-weight:500;
    cursor: pointer;
    box-shadow: -5px -5px 15px rgba(255,255,255,0.1),
    5px 5px 15px rgba(0,0,0,0.35), 
    inset -5px -5px 15px rgba(255,255,255,0.1), 
    inset 5px 5px 15px rgba(0,0,0,0.35);
}

.container.form p{
color:rgba(255,255,255,0.5);
font-size: 0.7em;
font-weight: 300;
}

.container.form p a{
    font-weight:500;
    color:#fff;
}